package o;

import android.content.pm.PackageManager.NameNotFoundException;
import com.huawei.fastengine.fastview.download.utils.PackageUtils;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.DnsConfig;

public class eex extends efd {
    public boolean ˊ(int i) {
        if (i != 0 || !ॱ()) {
            return false;
        }
        Logger.ˎ("GameReserveFilter", "showGameReleasedNotification, gamebox reserved and gamebox support reserving game.");
        return true;
    }

    private boolean ॱ() {
        try {
            if (ContentManager.getInstant().getContext().getPackageManager().getPackageInfo(PackageUtils.HWGAMEBOX_PACKAGE_NAME, DnsConfig.MAX_CACHE_ENTRIES) != null) {
                return true;
            }
        } catch (NameNotFoundException e) {
            Logger.ˏ("GameReserveFilter", "do not have gamebox.");
        }
        Logger.ˏ("GameReserveFilter", "do not have gamebox support game reserve.");
        return false;
    }
}
